package com.zhidisoft.crm.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

import com.zhidisoft.crm.entity.SysRoleFunc;

public interface ISysRoleFuncMapper {
	
	@Insert("insert into sys_role_func(id,role_id,func_id)values(#{id},#{role_id},#{func_id})")
	 void save(SysRoleFunc roleFunc);
	/**
	 * 根据id删除角色菜单
	 * @param roleId
	 */
	@Delete("delete from sys_role_func where role_id=#{roleId}")
	void deleteById(String roleId);

}
